<?php 
$loai_id = (int) $_POST['loai_id'];
if($loai_id>0){
        require_once("../lib/class.kieudang.php");
$kieu = new kieudang;	
$list = $kieu->listkieudang_byloai($loai_id);
while($row_kieu = mysql_fetch_assoc($list)){
?>
<td style="width:20px;padding:4px;text-align:center;vertical-align: top;font-size: 12px;"><input class="size" type="checkbox" name="kieu_id[]" value="<?php echo $row_kieu['kieu_id']; ?>" /><br /> <?php echo $row_kieu['kieu']; ?></td> 
<?php
} }
?>